package com.itheima.springbootwebtest.mapper;

import com.itheima.springbootwebtest.OperationTypeEnum.OperType;
import com.itheima.springbootwebtest.annotation.AutoLogAnnotation;
import com.itheima.springbootwebtest.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 员工mapper
 *
 * @Author mr.luo
 * @Date 14 4月 2025 11:22
 */
@Mapper
public interface EmpMapper {
    /**
     * 登录
     *
     * @param username
     * @return
     */
    @AutoLogAnnotation(value = OperType.Select)
    @Select("select * from emp where  username = #{username}")
    Emp login(String username);
    
}
